package com.irs.irsforum.service.impl;

import com.irs.irsforum.entity.Subject;
import com.irs.irsforum.mapper.SubjectMapper;
import com.irs.irsforum.service.ISubjectService;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author yihuili
 * @since 2020-02-01
 */
@Service
public class SubjectServiceImpl extends ServiceImpl<SubjectMapper, Subject> implements ISubjectService {

    @Autowired
    SubjectMapper subjectMapper;

    @Override
    public List<Subject> getSubjectList() {
        List<Subject> subjectList = subjectMapper.getSubjectList();
        return subjectList;
    }
}
